package dict;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

public class TransactionDict {
	
	//错误类型
	public static final Map<String, String> MESSAGES = Collections.synchronizedMap(new HashMap<String, String>());
	
	public final static String TRANSACTION_SUCCESS= "0000";
	public final static String TRANSACTION_FAILURE= "9999";
	
	public final static String CONNECTION_EXCEPTION= "X001";
	public final static String CONVERSION_EXCEPTION= "X002";
	public final static String ARGS_EMPTY= "X003";
	public final static String ARGS_LENGTH= "X004";
	public final static String ARGS_NUMBER= "X005";
	public final static String ARGS_EXCEED= "X006";
	public final static String ARGS_FORMAT= "X007";

	static {
		MESSAGES.put(TRANSACTION_SUCCESS, "Transaction Successful");
		MESSAGES.put(TRANSACTION_FAILURE, "Transaction Failure");
		MESSAGES.put(CONNECTION_EXCEPTION, "connection exception");
		MESSAGES.put(CONVERSION_EXCEPTION, "conversion exception");
		MESSAGES.put(ARGS_EMPTY, "missing parameter");
		MESSAGES.put(ARGS_LENGTH, "parameter length exceeded");
		MESSAGES.put(ARGS_NUMBER, "numeric format exception");
		MESSAGES.put(ARGS_EXCEED, "parameter value boundary exceeded");
		MESSAGES.put(ARGS_FORMAT, "parameter format error");
		
		
	}


}
